<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%-- 引入页面头 --%>
<%@ include file="/pageHead.jsp"%>
<form name="form1" id="form1" action="" method="post">
	<div class="pageMain">
		<div class="pageTitle">
		<%=MessageResourcesUtils.getMessage(request, "systemmanage.bascsetting.title") %>
		<span></span>
		<%=MessageResourcesUtils.getMessage(request, "systemmanage.autotaskresult.list.title") %>
		<span></span>
		<%=MessageResourcesUtils.getMessage(request, "systemmanage.autotaskresult.list.listtitle") %>
		</div>
		<div class="pageBody">
			<div class="form-group">
				<ul>
					<li>
						<i></i>
						<label><%=MessageResourcesUtils.getMessage(request, "systemmanage.autotaskresult.list.starttime") %></label>
						<input type="text" class="input-sm" id="startdate" name="startdate" value="" maxlength="10"/>
					</li>
					<li>
						<i></i>
						<label><%=MessageResourcesUtils.getMessage(request, "systemmanage.autotaskresult.list.endtime") %></label>
						<input type="text" class="input-sm" id="enddate" name="enddate" value="" maxlength="20"/>
					</li>
				</ul>
			</div>
		</div>
		<div class="button-group">
			<input type="button" class="btn btn-default" id="butQuery" name="butQuery" value="<%=MessageResourcesUtils.getMessage(request, "common.button.query") %>" />
		</div>
		<table width="100%">
			<tbody>
				<tr>
					<td>
						<table id="datagrid"></table>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
</form>
<script type="text/javascript">
$(document).ready(function() {
		$('#startdate').date_input();
		$('#enddate').date_input();

		//加载分页控件 datagrid
		$('#datagrid').issdatagrid({
			formid : 'form1',
			title : '<%=MessageResourcesUtils.getMessage(request, "systemmanage.autotaskresult.list.listtitle") %>',
			width : 'auto',
			nowrap : true,
			autoRowHeight : false,
			singleSelect : true,
			striped : true,
			url : '${systemctx}/systemManage/autoTaskResult/queryAutoTaskResultListInfoDataGrid.json',
			sortName : 'endtime',
			sortOrder : 'desc',
			remoteSort : true,
			idField : 'id',
			pagination : true,
			rownumbers : true,
			showFooter : true,
			queryParams:$('#form1').serializeObject(),
			frozenColumns :[[
				{field:'id', hidden:true},
				{title :'<%=MessageResourcesUtils.getMessage(request, "systemmanage.headautotask.list.taskcode")%>',field :'code',width:260,sortable: true,align : 'left'},  
				{title :'<%=MessageResourcesUtils.getMessage(request, "systemmanage.headautotask.list.taskname")%>',field :'name',width:200,sortable: true,align : 'left'}
			]],
			columns : [[
				<%-- {title :'<%=MessageResourcesUtils.getMessage(request, "systemmanage.headautotask.list.execlass")%>',field :'executeclass',width:450,sortable: true,align : 'left'}, 
				{title :'<%=MessageResourcesUtils.getMessage(request, "systemmanage.headautotask.list.exemodel")%>',field :'executemodel',width:100,sortable: true,align : 'center'}, 
				{title :'<%=MessageResourcesUtils.getMessage(request, "systemmanage.headautotask.list.exestatus")%>',field :'executestatus',width:80,sortable: true,align : 'center'}, 
				{title :'<%=MessageResourcesUtils.getMessage(request, "systemmanage.headautotask.list.taskstatus")%>',field :'taskstatus',width:80,sortable: true,align : 'center'},  --%>
				{title :'<%=MessageResourcesUtils.getMessage(request, "systemmanage.autotaskresult.list.starttime")%>',field :'starttime',width:150,sortable: true,align : 'center'},
				{title :'<%=MessageResourcesUtils.getMessage(request, "systemmanage.autotaskresult.list.endtime")%>',field :'endtime',width:150,sortable: true,align : 'center'},
				{title :'<%=MessageResourcesUtils.getMessage(request, "systemmanage.autotaskresult.list.result")%>',field :'result',width:160,sortable: true,align : 'left'},
				{title :'<%=MessageResourcesUtils.getMessage(request, "systemmanage.headautotask.list.servername")%>',field :'servername',width:140,sortable: true,align : 'left'}, 
				{title :'<%=MessageResourcesUtils.getMessage(request, "systemmanage.headautotask.list.taskdesc")%>',field : 'description',width : 180,sortable : true,align : 'left'} 
			]],
			onLoadSuccess : function(data) {

			}
		});
	
		$('#butQuery').click(function(){
			$('#datagrid').datagrid('load',$('#form1').serializeObject());
		});
});
</script>
<%-- 引入页面尾 --%>
<%@ include file="/pageFloor.jsp"%>